/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.ISPcompliance.config;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.ISPcompliance.service.AreaService;
import za.ac.cput.ISPcompliance.service.PerimeterService;
import za.ac.cput.ISPcompliance.service.VolumeService;
import za.ac.cput.ISPcompliance.service.internal.AreaServiceImpl;
import za.ac.cput.ISPcompliance.service.internal.PerimeterServiceImpl;
import za.ac.cput.ISPcompliance.service.internal.VolumeServiceImpl;
/**
 *
 * @author Enkosi
 */
@Configurable
public class Config {
   @Bean(name="areaService")
   public AreaService calcArea(){
       return new AreaServiceImpl();
   }
   @Bean(name="perimeterService")
   public PerimeterService calcPerimeter(){
       return new PerimeterServiceImpl();
   }
   @Bean(name="volumeService")
   public VolumeService calcVolume(){
       return new VolumeServiceImpl();
   }
}
